package random;

import java.util.*;

/**
 * 測試取得整數的亂數<br>
 * <br>
 * Copyright: Copyright (c) 2001-2007<br>
 * Company: 一零四資訊科技股份有限公司
 * @author Eric.Kao(eric.kao@104.com.tw)
 * @version 1.0
 */
public class TestFetchIntRandom
{
    public TestFetchIntRandom()
    {
        Random random = new Random();

        //只取 0~19
        for( int i = 0 ; i < 1000 ; i++ )
        {
            System.out.println( random.nextInt( 20 ) );
        }
    }

    public static void main( String[] args )
    {
        new TestFetchIntRandom();
    }
}
